package com.thinkgem.dingdan.modules.bu.service;

import java.util.List;

import com.thinkgem.dingdan.common.persistence.Page;
import com.thinkgem.dingdan.modules.bu.entity.BuOrder;
import com.thinkgem.dingdan.modules.bu.entity.TotalEntity;

public interface IBuOrderService {

	public Page<BuOrder> findCustomerPage(Page<BuOrder> page, BuOrder buOrder);
	public Page<BuOrder> findCustomerExportPage(Page<BuOrder> page, BuOrder buOrder);
	
	public Page<BuOrder> findSupplierPage(Page<BuOrder> page, BuOrder buOrder);
	public Page<BuOrder> findSupplierExportPage(Page<BuOrder> page, BuOrder buOrder);
	
	public Page<BuOrder> findDownloadSupplierPage(Page<BuOrder> page, BuOrder buOrder);
	
	int selectOrderStatus(BuOrder buOrder);
	int updateDelivery(BuOrder buOrder);
	BuOrder findEntity(BuOrder buOrder);
	
	BuOrder findById(BuOrder buOrder);
	
	BuOrder get(BuOrder buOrder);
	int updateBatchReceipt(BuOrder buOrder);
	TotalEntity findCreateById(BuOrder buOrder);
	TotalEntity findCustomerById(BuOrder buOrder);
	TotalEntity findSupplierById(BuOrder buOrder);
	TotalEntity findAllTotal(BuOrder buOrder);
	
	List<BuOrder> selectCustomerIdListByCreateId(BuOrder buOrder);
	List<BuOrder> selectCustomerIdListForManage(BuOrder buOrder);
	List<BuOrder> selectCustomerIdListBySupplierId(BuOrder buOrder);
	List<BuOrder> selectSupplierListByCreateId(BuOrder buOrder);
	List<BuOrder> selectSupplierIdListForManage(BuOrder buOrder);
	
	List<BuOrder> selectCustomerIdListByCustomerId(BuOrder buOrder);
	List<BuOrder> selectSupplierListByCustomerId(BuOrder buOrder);
	List<BuOrder> selectSupplierListBySupplierId(BuOrder buOrder);
	
	List<BuOrder> findImageList();
	
	void updateImageUrl(String id,String picUrl);
	
}
